// 活动管理相关API
import { get, post } from '@/axios/index.js'

// 获取活动列表
export const getActivityList = (data) => get('/activity/getList', data)

// 获取活动详情
export const getActivityDetail = (id) => get('/activity/detail/'+id)

// 新增或修改活动
export const addOrUpdateActivity = (data) => post('/activity/addOrUpdate', data)

// 删除活动
export const deleteActivity = (id) => get('/activity/delete/'+id)

// 更新活动状态
export const updateActivityStatus = (id, status) => get('/activity/changeStatus/'+id+'/'+status)